<?php

echo '		 
		 <script type="text/javascript">
        
            function do_getMenu_cb(z) {
                var value = z.split("-2-2-");
                document.getElementById(value[0]).innerHTML = value[1];
                if(value[1].toString().search("Vous")==0 && value[0] == "aValider"  )
                {
                	$("#MenuEncours").hide();
                }
            }
			
            function do_getMenu(type) {
                document.getElementById("iContainer").value = type;
                x_getMenu(type, do_getMenu_cb);
            }
            
            function do_setMenu_cb(z) {
                document.getElementById("iMsg").innerHTML = z;
                do_getMenu("MenuConnecte");do_getMenu("MenuDeconnecte"); do_getMenu("ignore"); do_getMenu("aValider"); 
            }
            
            function do_setMenu(target,cmd) {
                document.getElementById("tableList").removeChild(document.getElementById("_"+target));
                x_setMenu(cmd, do_setMenu_cb);
            }
        	
        	function montre(container) {
        		var root = container.split("_");
        		for(i=1;i<10;i++)
        			//if(i!=root[1])
        			{
        				$("#"+root[0]+"_"+i).hide();
        				$("#t_"+root[0]+"_"+i).removeClass("profil_menu_visible");
        			}
        		$("#"+container).show();
        		$("#t_"+container).addClass("profil_menu_visible");
        	}
        	
         </script>';
         
         echo '<div class="cadre_actuelle"><div class="cadre_profil_actuelle_titre parente">
					<div id="t_menu_1" class="profil_menu_transparent profil_menu_visible" onclick="montre(\'menu_1\');">Profil</div>
					
					<div id="t_menu_2" class="profil_menu_transparent" onclick="montre(\'menu_2\');">Editer le profil</div>
					
					<div id="t_menu_3" class="profil_menu_transparent" onclick="montre(\'menu_3\');">Changer la photo</div>
					<div id="t_menu_4" class="profil_menu_transparent" onclick="montre(\'menu_4\');">Param&egrave;tres</div>



					</div>';

?>
<div id="menu_2" style="display:none">
<div class="cadre_actuelle parente">

<?php

echo '<div id="t_editer_1" class="profil_compte_transparent profil_compte_visible" onclick="montre(\'editer_1\');">General</div>
	  <div id="t_editer_2" class="profil_compte_transparent" onclick="montre(\'editer_2\');">Personal</div>
	  <div id="t_editer_3" class="profil_compte_transparent" onclick="montre(\'editer_3\');">Apparence</div>
	  <div id="t_editer_4" class="profil_compte_transparent" onclick="montre(\'editer_4\');">Lifestyle</div>
	  <div id="t_editer_5" class="profil_compte_transparent" onclick="montre(\'editer_5\');">J\'aime</div>
	  <div id="t_editer_6" class="profil_compte_transparent" onclick="montre(\'editer_6\');">J\aime pas</div>';
	  ?>

</div></div></div>

